package com.slz3.business.frame.enums;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum YNFlag {
    YES("yes"), NO("no");
    private String nickname;
    public static boolean isYes(YNFlag flag) {
        return flag == null ? false : YNFlag.YES.equals(flag);
    }
}
